export default class LogUtil {
  debugLevel: number
  constructor(debugLevel = 3) {
    this.debugLevel = debugLevel

    this.log('LogUtil initialized', this.debugLevel)
  }
  debug(...args: any[]) {
    if (this.debugLevel >= 5) {
      console.debug(...args)
    }
  }
  log(...args: any[]) {
    if (this.debugLevel >= 3) {
      console.log(...args)
    }
  }
  warn(...args: any[]) {
    if (this.debugLevel >= 2) {
      console.warn(...args)
    }
  }
  error(...args: any[]) {
    if (this.debugLevel >= 1) {
      console.error(...args)
    }
  }
}
